package tw.com.hitevision.whiteboard.android.widgets.floatView.anim

import android.animation.Animator
import android.view.View
import android.view.ViewGroup
import tw.com.hitevision.whiteboard.android.widgets.floatView.enums.SidePattern
import tw.com.hitevision.whiteboard.android.widgets.floatView.interfaces.OnFloatAnimator

internal class AnimatorManager(
        private val onFloatAnimator: OnFloatAnimator?,
        private val view: View,
        private val parentView: ViewGroup,
        private val sidePattern: SidePattern
) {

    fun enterAnim(): Animator? = onFloatAnimator?.enterAnim(view, parentView, sidePattern)

    fun exitAnim(): Animator? = onFloatAnimator?.exitAnim(view, parentView, sidePattern)
}